import request from "@/utils/request";

export function allocatedUserList(query) {
    return request({
        url: '/iot/user/authUser/allocatedList',
        method: 'get',
        params: query
    })
}

export function unallocatedUserList(query) {
    return request({
        url: '/iot/user/authUser/unallocatedList',
        method: 'get',
        params: query
    })
}
export function authUserSelectAll(data) {
    return request({
        url: '/iot/user/authUser/selectAll',
        method: 'put',
        params: data
    })
}

// 取消用户授权
export function authUserCancel(data) {
    return request({
        url: '/iot/user/authUser/cancel',
        method: 'put',
        data: data
    })
}

// 批量取消用户授权
export function authUserCancelAll(data) {
    return request({
        url: '/iot/user/authUser/cancelAll',
        method: 'put',
        params: data
    })
}
